package com.xieyong.mywebsite.service;

import com.github.pagehelper.PageInfo;
import com.xieyong.mywebsite.model.entity.Article;

import java.time.LocalDateTime;
import java.util.List;

public interface ArticleService {

    void add(Article article);

    void delete(Integer id);

    void update(Article article);

    PageInfo<Article> findByCondition(Integer pageNum, Integer pageSize, LocalDateTime startTime,LocalDateTime endTime, Article article);

    Article detail(Integer id);

    List<Article> list();
}
